package com.ark.frigate.zookeeper.ext;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

import lombok.extern.slf4j.Slf4j;

/**
 * @Author ZengWeiLong
 * @Description Copy Right Beryonca
 * @Date 2023/2/15 1:32 PM
 * @Version 1.0
 */
@Slf4j
@Component
public class A7FactoryBean implements FactoryBean<String> {

    @Override
    public String getObject() throws Exception {
        log.info("=====7=FactoryBean ZookeeperService getObject========");
        return "FactoryBean";
    }

    @Override
    public Class<?> getObjectType() {
        log.info("=====7=FactoryBean ZookeeperService getObjectType========");
        return String.class;
    }

    @Override
    public boolean isSingleton() {
        log.info("=====7=FactoryBean ZookeeperService isSingleton========");
        return FactoryBean.super.isSingleton();
    }
}
